/**
 Created by:
 muhtearjan mehmood مۇختەرجان مەخمۇت (Email: yeganaaa@163.com)
 At 8/19/20 2:33 AM
 */
import {IStateModule} from "./ProtocolInterface";


export class StateModuleInMemoryImplementation implements IStateModule {
    private stateKey = ""
    public async getStateKey(): Promise<string> {
        return this.stateKey;
    }

    public async setStateKey(key: string): Promise<void> {
        this.stateKey = key
    }

    public async stateRestored(key: string): Promise<void> {
        this.stateKey = key
    }
}